/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.base.redis.domain.constant;

import com.iwindplus.base.domain.constant.CommonConstant;

/**
 * redis常数.
 *
 * @author zengdegui
 * @since 2024/06/10 20:03
 */
public final class RedisConstant {

    private RedisConstant() {
        throw new IllegalStateException(CommonConstant.UTILITY_CLASS);
    }

    /**
     * redis key默认过期时间（单位：秒）.
     */
    public static final Long EXPIRE_TIME = 7200L;

    /**
     * 哨兵模式.
     */
    public static final String SENTINEL = "sentinel";

    /**
     * 集群模式.
     */
    public static final String CLUSTER = "cluster";

    /**
     * 锁前缀.
     */
    public static final String LOCK_KEY_PREFIX = "lock:";

    /**
     * 限流前缀.
     */
    public static final String RATE_LIMITER_KEY = "rate_limiter:";
}
